package com.honeycomb.db.dao.impl;

import java.util.List;
import java.util.Map;

import javax.sql.DataSource;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import com.honeycomb.common.base.dao.impl.BaseDaoImpl;
import com.honeycomb.db.dao.MapinfoDao;
import com.honeycomb.map.dto.MapinfoDto;
import com.honeycomb.map.service.MapService;

/**
 * 地图dao实现
 * 
 * @author Wangyu
 */
@Repository
public class MapinfoDaoImpl extends BaseDaoImpl implements MapinfoDao {
	/*
	private MapService mapServeice;
	private JdbcTemplate jdbcTemplate;
	public void setDataSource(DataSource dataSource) {
		this.jdbcTemplate = new JdbcTemplate(dataSource);
	}
	
	@Override
	public MapinfoDto getMapxy(String map_id){
		MapinfoDto mapUser = null;
		String sql = "select * from map_info where map_id = ?";
		Object[] val = {map_id};
		List ll = jdbcTemplate.queryForList(sql, val);
		if(ll.size() != 0)
		{
			
			Object oj = ll.get(0);
			Map m = (Map) oj;
			mapUser = new MapinfoDto();
			mapUser.setMapX((Double) m.get("map_x"));
			mapUser.setMapY((Double)m.get("map_y"));
		}
		return mapUser;
	}
	*/
}
